package com.sky.demo.entity;

import org.realogic.cfm.domain.KEntity;

/**
 * 仓库-实体对象
 */
public class EntityWarehouse implements KEntity {

	private static final long serialVersionUID = 4494587222430994082L;
	// 仓库ID
	private Long id;
	// 仓库
	private String name;
	// 仓库代码
	private String code;
	// 控制标志
	private String ctrlcode;
	// 备注
	private String remark;

	public EntityWarehouse() {

	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long aId) {
		this.id = aId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String aName) {
		this.name = aName;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String aCode) {
		this.code = aCode;
	}

	public String getCtrlcode() {
		return this.ctrlcode;
	}

	public void setCtrlcode(String aCtrlcode) {
		this.ctrlcode = aCtrlcode;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String aRemark) {
		this.remark = aRemark;
	}

	public String toString() {
		StringBuffer returnString = new StringBuffer();
		returnString.append("com.sky.demo.entity.EntityWarehouse[");
		returnString.append("id = " + this.id + ";\n");
		returnString.append("name = " + this.name + ";\n");
		returnString.append("code = " + this.code + ";\n");
		returnString.append("ctrlcode = " + this.ctrlcode + ";\n");
		returnString.append("remark = " + this.remark + ";\n");
		returnString.append("]\n");
		return returnString.toString();
	}

	/******************* 辅助方法 *******************/
	/*
	 * 实体Key字符
	 */
	public String getKey() {
		if (id == null || id == 0) {
			return null;
		} else {
			return String.valueOf(id);
		}
	}
}